<?php



namespace app\superadmin\model;



use think\Model;



class Order extends Model

{

    public function userinfo() {

        return $this->belongsTo('User','uid');

    }


    public function serviceinfo() {

        return $this->belongsTo('Service','sid');

    }


    public function staffinfo() {

        return $this->belongsTo('User','staff_id');

    }

    public function refunds(){
        return $this->hasMany(OrderRefund::class, 'order_id', 'id');
    }


    
}

